import request from '@/utils/request'
import scope from './scope'
const apiPrefix = `${process.env.VUE_APP_BASE_API}/${scope}/articleCategory/`

// 接口管理
export const getArticleCategory = (params, config = {}) => {
    return request.get(apiPrefix + 'get', { params: params, ...config })
}
export const getArticleCategoryListPage = (params, config = {}) => {
    return request.post(apiPrefix + 'getpage', params, config)
}
export const getArticleCategoryList = (params, config = {}) => {
    return request.get(apiPrefix + 'getlist', { params: params, ...config })
}
export const addArticleCategory = (params, config = {}) => {
    return request.post(apiPrefix + 'add', params, config)
}
export const editArticleCategory = (params, config = {}) => {
    return request.put(apiPrefix + 'update', params, config)
}
export const removeArticleCategory = (params, config = {}) => {
    return request.delete(apiPrefix + 'softdelete', { params: params, ...config })
}